@import '@/style/variables.less';

.login-container {
  height: 100vh;
  background-image: url(../../assets/login.bg.png);
  background-size: cover;

  .login-form {
    position: relative;
    overflow: hidden;
    padding: 8vh;
    margin: calc(50vh - 277.5px) 5vw 5vw;
    max-width: 100%;
    background-size: 100% 100%;
    background-color: #fff;
    border-radius: 20px;

    .title {
      font-size: 54px;
      font-weight: 500;
      color: var(--el-color-black);

      &-tips {
        margin-top: 5px;
        font-size: 26px;
        font-weight: 400;
        color: var(--el-color-black);
      }
    }
  }

  .svg-container,
  .show-password {
    position: absolute;
    top: 13px;
    z-index: @base-z-index;
    font-size: 17px;
    color: rgb(168 171 178);
    cursor: pointer;
    user-select: none;
  }

  .svg-container {
    left: 15px;
  }

  .show-password {
    right: 15px;
  }

  .login-btn {
    display: inherit;
    margin-top: 5px;
    width: 220px;
    height: 50px;
    background: var(--el-color-primary);
    border: 0;
    border-radius: 5vh;

    &:hover {
      opacity: 0.9;
    }
  }

  :deep(.el-form) {
    .el-form-item {
      padding-right: 0;
      margin-top: 26px;
      color: #454545;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 2px;

      &.first-from-item {
        margin-top: 40px;
      }

      &__content {
        min-height: @base-input-height;
        line-height: @base-input-height;
      }

      &__error {
        position: absolute;
        top: 100%;
        left: 18px;
        font-size: @base-font-size-small;
        line-height: 18px;
        color: @base-color-red;
      }
    }

    .el-input {
      box-sizing: border-box;

      input {
        padding-left: 30px;
        height: 48px;
        border: 0;
        line-height: 48px;
      }
    }
  }
}
